package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.StrategyDoubleComment;
import cn.wolfcode.trip.base.query.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IStrategyDoubleCommentService {
    PageInfo list(QueryObject qo);
    void saveOrUpdate(StrategyDoubleComment strategyDoubleComment);

    void updateState(StrategyDoubleComment strategyDoubleComment);

    List<StrategyDoubleComment> selectBystrategycommentId(Long strategycommentId);

    /**
     * 根据作者id查询点评
     * @param qo
     * @return
     */
    PageInfo queryListByAuthorId(QueryObject qo);

    int queryForCount(Long authorId);

    int selectCountNumBystrategycommentId(Long strategycommentId);
}
